# 获取客服账号列表
请求方式:POST
请求地址:https://$basehost/gateway/eaopen/GetCustomerServiceList
body参数:
{
"offset": 0,
"limit": 2
}
字段 | 类型 | 必填 | 说明 |
---|---|---|---|
offset | int | 是 | 每次获取的的开始位置,最小值为0 |
limit | int | 是 | 每次获取的条数,取值范围(1~100) |
customer_service_account | string | 否 | 登录id |
customer_service_open_id | string | 否 | 客服id |
返回值:
{
"data": {
"list": [
{
"customer_service_name": "hello1",
"customer_service_account": "chenyx1",
"customer_service_open_id": "accxdfd8djdfg7s",
"assign_robot_list": [
"accxVKv4nmCfoUvuAqH2bCs",
"accUe5syej6K6QuLNZtl7vx"
],
"work_status": 2,
"login_status": 2,
"account_status": 2,
"create_time": "1654781270",
"category_id": "123",
"category_name": "测试1"
},
{
"customer_service_name": "hello14",
"customer_service_account": "chenyx14",
"customer_service_open_id": "accxdgd8djdfgsg",
"assign_robot_list": [
"accxVKv4nmCfoUvuAqH2bCs",
"accUe5syej6K6QuLNZtl7vx"
],
"work_status": 2,
"login_status": 2,
"account_status": 2,
"create_time": "1654769540",
"category_id": "455",
"category_name": "测试3"
}
],
"has_more": true
},
"errcode": 0,
"errmsg": "",
"hint": "5aXma5QySBb3JNAyiywA"
}
返回说明
字段 | 类型 | 说明 |
---|---|---|
customer_service_name | string | 客服名称 |
customer_service_account | string | 登录账号,可变 |
customer_service_open_id | string | 客服id,唯一不变 |
assign_robot_list | array | 分配机器人列表;若该客服为资产模式,则展示机器人列表,若为无资产模式,则该值为空 |
work_status | int | 上班状态,1为上班,2为下班 |
login_status | int | 登录状态,1为登录中,2为未登录 |
account_status | int | 账号状态,1为启用,2为停用 |
create_time | int | 创建时间(时间戳) |
category_id | string | 分组id |
category_name | string | 分组名 |
errcode | int | 状态码,0为正常,非0代表错误 |
errmsg | string | 错误信息 |
hint | string | 请求日志ID |
完整请求示例:
curl -X POST https://$basehost/gateway/eaopen/GetCustomerServiceList \
-H 'Content-Type: application/json; charset=UTF-8' \
-H 'Token: c2NdxDHKXIJ5j1zrhJeq2eJEHjh9xxx' \
-d '{
"limit": 10,
"offset": 0
}'